import { createRouter, createWebHashHistory } from "vue-router";
import { createGuardsAndHooks } from "./guards";
import { flattedRoutes } from "./routes";

export const router = createRouter({
  history: createWebHashHistory(),
  routes: flattedRoutes,
});

createGuardsAndHooks(router);
